import { axios } from '@/utils/request'

/**
 * 查询开放选课学生
 *
 * @author kongxm
 * @date 2022-07-07 22:10:42
 */
export function coursePublishStudentPage(parameter) {
  return axios({
    url: '/coursePublishStudent/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 开放选课学生列表
 *
 * @author kongxm
 * @date 2022-07-07 22:10:42
 */
export function coursePublishStudentList(parameter) {
  return axios({
    url: '/coursePublishStudent/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加开放选课学生
 *
 * @author kongxm
 * @date 2022-07-07 22:10:42
 */
export function coursePublishStudentAdd(parameter) {
  return axios({
    url: '/coursePublishStudent/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑开放选课学生
 *
 * @author kongxm
 * @date 2022-07-07 22:10:42
 */
export function coursePublishStudentEdit(parameter) {
  return axios({
    url: '/coursePublishStudent/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除开放选课学生
 *
 * @author kongxm
 * @date 2022-07-07 22:10:42
 */
export function coursePublishStudentDelete(parameter) {
  return axios({
    url: '/coursePublishStudent/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出开放选课学生
 *
 * @author kongxm
 * @date 2022-07-07 22:10:42
 */
export function coursePublishStudentExport(parameter) {
  return axios({
    url: '/coursePublishStudent/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
